﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
    class Method
    {
        public void Add(double num1, double num2)
        {
            Console.WriteLine("{0}+{1}的和为{2}", num1, num2, num1 + num2);
        }
        public void Minus(double num1, double num2)
        {
            Console.WriteLine("{0}-{1}的差为{2}", num1, num2, num1 - num2);
        }
        public void Multiply(double num1, double num2)
        {
            Console.WriteLine("{0}*{1}的积为{2}", num1, num2, num1 * num2);
        }
        public void Divide(double num1, double num2)
        {
            Console.WriteLine("{0}/{1}的商为{2}", num1, num2, num1 / num2);
        }
    }
}
